#ifndef __UTILFILE_H_
#define __UTILFILE_H_

#include <string>

namespace Util
{
	class UtilFile
	{
	public:
		UtilFile();
		~UtilFile();

	public:
		static bool is_path_exit(std::string path);
		static bool is_path(std::string path);
		static bool is_path_empty(std::string path);
		static std::string current_path();
		static std::string document_path();
		static std::string appdata_path();
		static bool append_path(std::string &path, std::string more);
		static bool create_path(std::string path);

		// "\"wandoujia2.exe\"\"wandoujia_helper.exe\"\"wandoujia_adb.exe\"\"tadb.exe\"\"adb.exe\""
		// "\"wandoujia2.exe\""
		static bool kill_process_by_name(std::string name);
		static std::string run_cmd(char* cmd);

	private:
		static std::string _str_current_path;
		static std::string _str_document_path;
		static std::string _str_appdata_path;
	};
}
#endif //__UTILFILE_H_